﻿Imports MyPOSLibrary

Public Class PaymentReceiptWindow

    Private Sub CloseButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles CloseButton.Click
        Me.Close()
    End Sub

    Private Sub MinimizeButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles MinimizeButton.Click
        Me.WindowState = Windows.WindowState.Minimized
    End Sub

    Private Sub PaymentReceiptWindow_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Me.MouseDown
        DragMove()
    End Sub

    Public Sub New(ByVal FormType As FormsList)

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        If FormType = FormsList.Receipt Then
            ModuleNameRun.Text = "Receipt"
        Else
            ModuleNameRun.Text = "Payment"
        End If
    End Sub
End Class
